<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
        <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>访客管理系统</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="${pageContext.request.contextPath}/3rd/X-admin/css/font.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/3rd/X-admin/css/xadmin.css">
        <script src="${pageContext.request.contextPath}/3rd/X-admin/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/3rd/X-admin/js/xadmin.js"></script>
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                        </div>
                        <div class="layui-card-body ">
                            <table class="layui-table layui-form">
                              <thead>
                                <tr>
                                  <th>用户编号</th>
                                  <th>用户登录帐号</th>
                                  <th>用户名称</th>
                                  <th>用户年龄</th>
                                  <th>手机号</th>
                                  <th>密码</th>
                                  <th>头像</th>
                                  <th>创建时间</th>
                                  <th>操作</th>
                              </thead>
                              <tbody>
                                <tr>
                                  <td>${list.id}</td>
                                  <td>${list.account}</td>
                                  <td>${list.name}</td>
                                  <td>${list.age}</td>
                                  <td>${list.phone}</td>
                                  <td>${list.password}</td>
                                    <td><img src="${list.headPic}" style="    width: 60px;"></td>
                                   <td>${list.createTime}</td>
                                   <td class="td-manage">
                                    <a title="修改"  onclick="update(this,${list.id})" href="javascript:;">
                                      <i class="layui-icon">&#xe642;</i>
                                    </a>
                                  </td>
                                </tr>
                              </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div> 
    </body>
    <script>
      layui.use(['laydate','form'], function(){
        var laydate = layui.laydate;
        var form = layui.form;
      });
      function update(obj,id) {
          xadmin.open('修改好友信息','${pageContext.request.contextPath}/userManager/user-update?id='+id,430,600);
      }
    </script>
</html>